﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.IO;

namespace ApplLogic.ApplClasses
{
    [Serializable]
    public class ApplManager
    {
        private ApplPersonalDetails m_PersonalDetails = null;

        public ApplManager()
        {
            m_PersonalDetails = new ApplPersonalDetails();
        }

        public ApplPersonalDetails PersonalDetails
        {
            get { return m_PersonalDetails; }
            set { m_PersonalDetails = value; }
        }

        public ApplManager DeepClone()
        {
            MemoryStream ms = new MemoryStream();
            BinaryFormatter bf = new BinaryFormatter();
            bf.Serialize(ms, this);
            ms.Position = 0;
            ApplManager obj = (ApplManager)bf.Deserialize(ms);
            ms.Close();
            return obj;
        }

        public override string ToString()
        {
            return m_PersonalDetails.ToString();
        }
    }
}
